﻿@model IEnumerable<OnlinePharmacyV001.Models.Account>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            accId
        </th>
        <th>
            accUser
        </th>
        <th>
            accPass
        </th>
        <th>
            accFullName
        </th>
        <th>
            accEmail
        </th>
        <th>
            accBirthday
        </th>
        <th>
            accGender
        </th>
        <th>
            accCreatedDate
        </th>
        <th>
            accLastLogin
        </th>
        <th>
            accAddress
        </th>
        <th>
            accPhone
        </th>
        <th>
            accCompany
        </th>
        <th>
            Role
        </th>
        <th>
            accStatus
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.accId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accUser)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accPass)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accFullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accEmail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accBirthday)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accGender)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accCreatedDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accLastLogin)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accAddress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accPhone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accCompany)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Role.rlName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.accStatus)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>        
    </tr>    
}

</table>
